<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<script type="text/javascript"
	src="scripts/apps/product/product-util.js"></script>
<script type="text/javascript" src="scripts/apps/product/quotastree.js"></script>
<link href="css/apps/product/quotastree.css" rel="stylesheet"
	meida="screen" />
<link href="css/apps/product/product.css" rel="stylesheet"
	meida="screen" />
<div id="depts"></div>
<div class="input-append">

		<span class="add-on">产品类型:</span> <select id="itemType">
				<option value="常规产品">常规产品</option>
				<option value="部件">部件</option>
		</select>	
<input id="stext" type="text" />
<button class="btn" id="searchBtn">搜索</button>
</div>
<fieldset>
<legend>产品导入导出</legend>
<form   enctype="multipart/form-data" action="product/product!datainput"
		method="post"
		target="pdtframe">
		<input type="file" name="upLoad" />
		<button class="btn btn-success" >导入</button>
		<button class="btn" type="button" id="ept">导出</button>
</form>
</fieldset>
<fieldset>
<legend>价格导入</legend>
<form enctype="multipart/form-data" action="product/product!updatePrice"
	  method="post"
	  target="pdtframe">
	  <input type="file" name="upLoad" />
	  <button class="btn btn-success" >更新价格</button>
</form>
</fieldset>
<div id="mainwrap">
		<div id="treepanel">
			<ul id="bomTree" class="ztree"></ul>
		</div>
		<div id="cntpanel">
			<form id="pform">
				<div id="productCnt"></div>
			</form>
			<table class="table table-hover table-bordered table-condensed ">
				<tbody>
					<tr>
						<td colspan="2">
							<button id="saveBtn"  class="btn btn-primary" type="button">保存</button>
							<button id="clearBtn" class="btn btn-info" type="button">新建</button>
                            <button id="techBtn"  class="btn btn-success" type="button">添加工艺</button>
							
						</td>
					</tr>
				</tbody>
			</table>

			<form id="qform">
				<table class="table table-hover table-bordered table-condensed ">
					<caption>定额添加</caption>

					<tr>
						<td>产品代码</td>
						<td>
						<input  id="hostcode" name="quotabeans[0].host.code" readonly /> 						
						</td>
					</tr>
					<tr>
						<td>定额代码</td>
						<td><input id="ownercode" name="quotabeans[0].owner.code" /></td>
					</tr>
					<tr>
						<td>定额产品</td>
						<td>							
							
							<ul id="spdt">

							</ul>
							
						</td>
					</tr>
					<tr>
						<td>定额数</td>
						<td><input name="quotabeans[0].consume" id="consume"
							onblur="judgeNumber(this)" value="1" /></td>
					</tr>
					<tfoot>
						<tr>
							<td colspan="2">
									<button id="saveQuotaBtn" class="btn btn-primary" type="button">保存定额</button>
									<button class="btn" type="reset">重置</button>
							</td>
						</tr>
					</tfoot>
				</table>
			</form>
		</div>
		<div style="clear: both;"></div>
	</div>
</fieldset>
